package cn.wjc.demo.common.annotation;

import java.lang.annotation.*;

/**
 * 用于参数上的注解
 */
@Target({ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface FileParam {

    /**
     * 文件后缀
     */
    public String[] suffix() default {"doc", "xls", "ppt", "png", "txt"};

    /**
     * 文件大小
     */
    public int size() default 2048;
}
